package com.itheima.pojo;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 体检预约信息
 */
public class Order implements Serializable{
    public static final String ORDERTYPE_TELEPHONE = "电话预约";
    public static final String ORDERTYPE_WEIXIN = "微信预约";
    public static final String ORDERSTATUS_YES = "已到诊";
    public static final String ORDERSTATUS_NO = "未到诊";
    private Integer id;
    private Integer memberId;//会员id
    private Date orderDate;//预约日期
    private String orderType;//预约类型 电话预约/微信预约
    private String orderStatus;//预约状态（是否到诊）
    private Integer setmealId;//体检套餐id

    private Integer isPaid;//是否支付
    private String orderNum;//微信支付的订单号
    private Integer price;//套餐价格
    private String codeUrl;//支付链接

    private String telephone;

    public Order() {
    }

    public Order(Integer id, Integer memberId, Date orderDate, String orderType, String orderStatus, Integer setmealId, Integer isPaid, String orderNum, Integer price, String codeUrl, String telephone) {

        this.id = id;
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
        this.isPaid = isPaid;
        this.orderNum = orderNum;
        this.price = price;
        this.codeUrl = codeUrl;
        this.telephone = telephone;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return memberId
     */
    public Integer getMemberId() {
        return memberId;
    }

    /**
     * 设置
     * @param memberId
     */
    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    /**
     * 获取
     * @return orderDate
     */
    public Date getOrderDate() {
        return orderDate;
    }

    /**
     * 设置
     * @param orderDate
     */
    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    /**
     * 获取
     * @return orderType
     */
    public String getOrderType() {
        return orderType;
    }

    /**
     * 设置
     * @param orderType
     */
    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    /**
     * 获取
     * @return orderStatus
     */
    public String getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置
     * @param orderStatus
     */
    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * 获取
     * @return setmealId
     */
    public Integer getSetmealId() {
        return setmealId;
    }

    /**
     * 设置
     * @param setmealId
     */
    public void setSetmealId(Integer setmealId) {
        this.setmealId = setmealId;
    }

    /**
     * 获取
     * @return isPaid
     */
    public Integer getIsPaid() {
        return isPaid;
    }

    /**
     * 设置
     * @param isPaid
     */
    public void setIsPaid(Integer isPaid) {
        this.isPaid = isPaid;
    }

    /**
     * 获取
     * @return orderNum
     */
    public String getOrderNum() {
        return orderNum;
    }

    /**
     * 设置
     * @param orderNum
     */
    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * 获取
     * @return price
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     * 获取
     * @return codeUrl
     */
    public String getCodeUrl() {
        return codeUrl;
    }

    /**
     * 设置
     * @param codeUrl
     */
    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

    /**
     * 获取
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 设置
     * @param telephone
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String toString() {
        return "Order{ORDERTYPE_TELEPHONE = " + ORDERTYPE_TELEPHONE + ", ORDERTYPE_WEIXIN = " + ORDERTYPE_WEIXIN + ", ORDERSTATUS_YES = " + ORDERSTATUS_YES + ", ORDERSTATUS_NO = " + ORDERSTATUS_NO + ", id = " + id + ", memberId = " + memberId + ", orderDate = " + orderDate + ", orderType = " + orderType + ", orderStatus = " + orderStatus + ", setmealId = " + setmealId + ", isPaid = " + isPaid + ", orderNum = " + orderNum + ", price = " + price + ", codeUrl = " + codeUrl + ", telephone = " + telephone + "}";
    }
}
